<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="com.commerceE.domain.User"%>
<base href="<%=request.getContextPath()%>/">
    
<% 
   Object object = session.getAttribute("currentUser");
   User currentUser = null;
   boolean loginFlag = false;
   if(object!=null){
	   currentUser = (com.commerceE.domain.User)object;
	   if(currentUser!=null && currentUser.getUserid()!=null && currentUser.getUserid()!=0){
		   loginFlag = true;
       }
   }
%>
    
    
<div id="header">
  
    <div class="header-top" >
      <div class="right-header" >
      		<div class="cart-position"><div class="cart-inner"><div id="cart">

  <div class="heading">
  <b>我的购物车 </b>
  	<a>	
    	<span class="sc-button"></span>
    	
       
    	<span id="cart-total"><%=currentUser.getTotalQuantity() %> 件商品 - <strong>¥<%=currentUser.getTotalPrice() %></strong></span>
        
        </a>
    </div>
    
</div>
</div></div>
            <ul class="links">
              <li><a class="first" href=""></a></li>
              <li><a href="order/orderList.html" id="wishlist-total">我的订单 </a></li>
              <li><a href="account.html">我的帐号</a></li>
              <li><a href="shoppingCart.html">我的购物车</a></li>
              <li class="last"><a href="shoppingCart/checkout_login.html">结账</a></li>
            </ul>
            
      	            
      </div>
  </div>
    <div class="menu-bg">
        
        <ul class="main-menu">
        <%@ include file="topMenu.jsp" %>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="search-back">
    	<div id="search">
          <div class="button-search"></div>
                    <span class="search-bg"> <input name="filter_name" value="查询" onclick="this.value = '';" onkeydown="this.style.color = '#b3b3b3';" type="text"></span>
                  </div>
    </div>
    <div id="welcome">
    
    
    <%
    if(loginFlag){%>
    	欢迎  <a href="account.html">${currentUser.username}</a>  <a href="account/logout.html">注销</a> 
    <%}else{ %>
	    欢迎您, 游客 您可以 <a href="account/login.html">登录</a> 
	    或 <a href="account/register.html">注册</a> &nbsp;&nbsp;
    <%}%>
    	
      
	</div>
        <div id="logo"><a href=""><img src="resources/images/logo.png" height="60" width="110" title="Books Store"
         alt="Books Store"></a></div>
  </div>